package io.gitee.zhangbinhub.admin.resource.server.vo

import io.swagger.v3.oas.annotations.media.Schema

/**
 * @author zhang by 14/06/2019
 * @since JDK 11
 */
@Schema(description = "流程实例")
data class ProcessInstanceVo(
    @Schema(description = "流程实例id")
    var processInstanceId: String? = null,

    @Schema(description = "流程定义键")
    var processDefinitionKey: String? = null,

    @Schema(description = "业务键")
    var businessKey: String? = null,

    @Schema(description = "流程名称")
    var flowName: String? = null,

    @Schema(description = "标题")
    var title: String? = null,

    @Schema(description = "流程描述")
    var description: String? = null,

    @Schema(description = "发起人")
    var startUser: UserVo? = null,

    @Schema(description = "当前处理人")
    var activityUser: MutableList<UserVo> = mutableListOf(),

    @Schema(description = "自定义参数")
    var params: MutableMap<String, Any> = mutableMapOf(),

    @Schema(description = "流程是否已结束")
    var finished: Boolean = false,

    @Schema(description = "开始时间")
    var startTime: Long = 0,

    @Schema(description = "结束时间")
    var endTime: Long? = null,

    @Schema(description = "流程删除原因")
    var deleteReason: String? = null
)
